<extend name="Manage/themes/default/base" />
<block name="main">
    <style type="text/css">
        textarea{
            background-color: #FFFFFF;
            width:94%;
        }
    </style>
    <div class="layui-fluid">
        <div class="layui-row">
            <form class="layui-form">
                <table class="table-form">
                    <tr>
                        <td width="120" align="right" class="td-title">客户端:</td>
                        <td>{{$oauth_client_id}}</td>
                    </tr>
                    <tr>
                        <td align="right" class="td-title">请求方式:</td>
                        <td>{{$request_type}}</td>
                    </tr>
                    <tr>
                        <td align="right" class="td-title">响应状态:</td>
                        <td>{{$response_code}}</td>
                    </tr>
                    <tr>
                        <td align="right" class="td-title">请求地址:</td>
                        <td>{{$request_url}}</td>
                    </tr>
                    <tr>
                        <td align="right" class="td-title" valign="top">请求数据:</td>
                        <td valign="top">
                            <textarea id="request-data" rows="15" style="resize: none" disabled></textarea>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="td-title" valign="top">响应结果:</td>
                        <td valign="top">
                            <textarea id="respone-result" rows="15" style="resize: none" disabled></textarea>
                        </td>
                    </tr>
                </table>
            </form>
        </div>
    </div>
    <script language="javascript">
        var form;
        var responeData = '{{:addslashes($response_data_format)}}';
        var requestData = '{{:addslashes($data_format)}}';
        layui.use(['form'], function(){
            form = layui.form;
            var responeDataJson = JSON.parse(responeData);
            var requestDataJson = JSON.parse(requestData);
            $('#respone-result').val(JSON.stringify(responeDataJson, null, "\t"));
            $('#request-data').val(JSON.stringify(requestDataJson, null, "\t"));
        });
    </script>
</block>